package com.fzj.example.design.visitor;

/**
* @Description
* @Author  fanzj
* @Date   2020/5/10 10:04 下午
* @Param  
* @Return      
* @Exception   
* 
*/
public class ConcreteVisitorA implements Visitor {
    public void visit(ConcreteElementA element)
    {
        System.out.println("具体访问者A访问-->"+element.operationA());
    }
    public void visit(ConcreteElementB element)
    {
        System.out.println("具体访问者B访问-->"+element.operationB());
    }

}
